package com.im.common.enums.command;

/**
 * 好友事件命令枚举
 */
public enum FriendshipEventCommand implements Command {

    FRIEND_ADD(3000, "添加好友"),
    FRIEND_UPDATE(3001, "更新好友"),
    FRIEND_DELETE(3002, "删除好友"),
    FRIEND_REQUEST(3003, "好友申请"),
    FRIEND_REQUEST_READ(3004, "好友申请已读"),
    FRIEND_REQUEST_APPROVER(3005, "好友申请审批"),
    FRIEND_BLACK_ADD(3010, "添加黑名单"),
    FRIEND_BLACK_DELETE(3011, "移除黑名单"),
    FRIEND_GROUP_ADD(3012, "新建好友分组"),
    FRIEND_GROUP_DELETE(3013, "删除好友分组"),
    FRIEND_GROUP_MEMBER_ADD(3014, "好友分组添加成员"),
    FRIEND_GROUP_MEMBER_DELETE(3015, "好友分组移除成员"),
    FRIEND_ALL_DELETE(3016, "删除所有好友");

    private int command;
    private String desc;

    /**
     * 构造函数
     *
     * @param command 命令值
     * @param desc     命令描述
     */
    FriendshipEventCommand(int command, String desc) {
        this.command = command;
        this.desc = desc;
    }

    /**
     * 获取命令值
     *
     * @return 命令值
     */
    @Override
    public int getCommand() {
        return command;
    }

    /**
     * 获取命令描述
     *
     * @return 命令描述
     */
    public String getDesc() {
        return desc;
    }
}
